<%@ page language="java" import="com.yb.util.comm.RequestUtil" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
<%@taglib uri="estateTag" prefix="estateTag" %>
<%
String path = request.getContextPath();
String name = RequestUtil.getParam(request, "name", "");
String bigCategory = RequestUtil.getParam(request, "bigCategory", "");
String categoryId = RequestUtil.getParam(request, "categoryId", "");
String typeId = RequestUtil.getParam(request, "typeId", "");
String brandId = RequestUtil.getParam(request, "brandId", "");
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
  <head>
    <title>发布公告</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<link rel="stylesheet" href="../resource/css/global.css" type="text/css"></link>
	<link rel="stylesheet" type="text/css" href="../resource/css/easyui/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="../resource/css/easyui/icon.css">
	<script type="text/javascript" src="../resource/js/jquery-1.4.2.js"></script>
	<script type="text/javascript" src="../resource/js/easyui/jquery.easyui.min.js"></script>
	<script type="text/javascript"	src="../resource/js/easyui/easyui-lang-zh_CN.js"></script>
		<link rel="stylesheet" type="text/css" href="../resource/js/kindeditor/skins/default.css"></link>
			<script type="text/javascript" src="../resource/js/kindeditor/kindeditor.js"></script>
	<link rel="stylesheet" href="../resource/css/whole.css" type="text/css"></link>
	<link rel="stylesheet" href="../resource/css/global.css" type="text/css"></link>
	    <link rel="stylesheet" href="../resource/css/memberCenter/infowithoutmenu.css" type="text/css"></link>
  </head>
  
  <body><estateTag:security></estateTag:security>
  	<center><jsp:include page="../index/top.jsp"></jsp:include></center>
      <div style="width: 100%;margin-top: 10px;" align="center">
			<table width="100%" class="layoutTab">
				<tr> 
				<!-- 	<td width="20%" align="left" valign="top"><jsp:include page="../menu.jsp"></jsp:include></td> -->
						<td valign="top" align="center">
									<form name="form" method="post"  target="tempF"
										action="../goods/goods_saveAnnouncement.shtml"  
									onsubmit="return checkSave()"	>
					 <input id="menuCls" type="hidden" value="33">
					 <div class="position" align="left"><label>您所在的位置：</label>限时抢购管理模块&nbsp;&nbsp;--&gt;&gt;&nbsp;&nbsp;抢购产品设置&nbsp;&nbsp;--&gt;&gt;&nbsp;&nbsp;维护公告</div>
					<br/><div class="info_top"></div>
					<div class="info_mid" align="center">
										<table width="710px" style="margin-left: 25px;" border="0" id="userinfo" cellpadding="1" cellspacing="1">
											<tr>
												<td align="center" colspan="2">
													<b>公告编辑 </b>
												</td>
											</tr>
											<tr>
												<td align="right" width="30%">
														内容：
												</td>
												<td align="left" id="filter_ke">
													<textarea  cols="70%" rows="20" id="content1"  name="goods.announcement">${goods.announcement}</textarea>
												</td>
											</tr>

											<tr>
												<td colspan="2" align="center">
                                                      <input type="hidden" name="goods.id" value="${goods.id}">
                                     
													<!-- 审核状态 未审核 -->
													<input type="submit" value="保存">
													&nbsp;&nbsp;
													 <input type="button" onclick="goback()" value="返 回">&nbsp;&nbsp;
												</td>
											</tr>
										</table>
										   </div>
			<div class="info_bottom">&nbsp;</div>
									</form>
								</td>
							</tr>
						</table>
						    <iframe name="tempF" style="display: none;"></iframe>
		</div>          <input type="hidden"/>
						<div style="margin-top: 10px;">
		</div>    
		<script>
			KE.show({
				id : 'content1',
				loadStyleMode : false,
				resizeMode : 0,
				allowUpload:true, //允许上传图片 
				imageUploadJson:'<%=basePath%>/comutil/upload.shtml',    
				items : [
				'fontname', 'fontsize', '|', 'textcolor', 'bgcolor', 'bold', 'italic', 'underline',
				'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
				'insertunorderedlist']
			});
			$(function(){
	     $("#userinfo td").not($("#filter_ke td")).addClass("info_td1");
		 $("#userinfo tr").find("td:even").not($("#filter_ke td")).addClass("title_info2");
		 $("#userinfo tr").find("td:odd").not($("#filter_ke td")).css("padding-left","5px");
        });
        
        
        function checkSave(){
           alert("保存成功！");
           return true;
        }
         function  goback(){
         // goods/goods_manageGoods.shtml
         window.location.href = "../goods/goods_manageGoods.shtml?name=" +'<%=name%>'
								+'&bigCategory='+'<%=bigCategory%>'+'&categoryId='+ '<%=categoryId%>'
								+'&typeId='+'<%=typeId%>'+'&brandId='+ '<%=brandId%>' ;
		       // history.go(-1);
	     }    
	
        
		</script>
  	<center> <iframe src="../index/footer.html" width="970" height="120" frameborder="0" scrolling="no"></iframe> </center></body>
</html>
